import { createRouter, createWebHistory } from 'vue-router'

import SearchMain from '../views/SearchMain.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'search',
      component: SearchMain,
    },
    {
      path: '/search',
      component: SearchMain,
    },
    {
      path: '/info',
      name: 'info',
      component: () => import('../views/InfoMain.vue')
    }
  ]
})

export default router
